package com.cmii.sjw.department.control.jsc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cmii.sjw.department.control.jsc.mapper.SummaryMapper;
import com.cmii.sjw.department.control.jsc.model.Summary;
import com.cmii.sjw.department.control.jsc.service.SummaryService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

@Service
public class SummaryServiceImpl extends ServiceImpl<SummaryMapper, Summary> implements SummaryService {

    @Override
    public Summary getByCountyName(String countyName) {
        return lambdaQuery()
                .eq(StringUtils.isNotBlank(countyName), Summary::getCountyName, countyName)
                .one();
    }
}